<?php

$sql = "
select 
		Name, 
		convert(varchar(20), crdate, 120) as create_date, 
		user_name(uid) as dbowner 
from 
		sysobjects 
where  
		xtype = 'U' 
		and status > 0 
order by 
		name 
";

return $sql;

?>